package com.example.springboot_demo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * <P> @Author: SongKeCheng
 * <P> Type: Class
 * <P> Description:
 * <P> Date: 2024/6/21:8:24
 */

@SuppressWarnings({"unchecked", ""})
@RequestMapping("/test")
@RestController
public class TestController {
    private static final Logger log = LoggerFactory.getLogger(TestController.class);

    //@GetMapping("/hello")
    @RequestMapping("/hello")
    public Object hello(){
        return "hello spring boot";
    }

//    ?device=pc&platform=web

    //@RequestMapping(name="/homeHot",method ={RequestMethod.GET})
    //get post put delete
    //@DeleteMapping
    @GetMapping("/homeHot")
    //@PostMapping
    public Object homeHot(@RequestParam("device1") String device, String platform){
        log.info("device:{}",device);
        log.info("platform:{}",platform);
        return null;
    }


}
